<?
  $mobQuickLook = array();
  foreach($mobList as $mobKey => $m)
    $mobQuickLook[] = $m['count'].'x level '.$m['level'].' '.$m['name'];
?><tr>
  <td valign="top" width="110"><div align="center">
    <img width="100" src="img/<?= getDefault($act['a_icon'], 'evilgrin') ?>.png" 
      <?= toolTip(':<b>XP reward: '.$xpCount.'</b><br/>'.implode('<br/>', $mobQuickLook)) ?>/>
  </div></td>
  <td valign="top">      
    <h4><?= $act['a_name'] ?></h4><?
    if ($preMet)
    {
    ?>
      <div class="action_intro">
        <?= nl2br($act['a_intro']) ?>
      </div>
      
      <div class="action_action"><?
      if ($playerIsReady && $ap >= $apCost)
      {
        ?><div style="float: right;"><?
        if ($act['a_type'] == 'C')
        {?>
          <input type="button" name="kill" value="<?= getDefault($action_stats['button'], 'Attack!') ?>" 
            onclick="document.location.replace('<?= actionUrl('act', 'game', 'id='.$act['a_key']) ?>');">
        <?}
        if ($act['a_type'] == 'Z')
        {?>
          <input type="button" name="move" 
            value="<?= getDefault($action_stats['button'], 'Move!') ?>" onclick="document.location.replace('<?= actionUrl('move', 'game', 'id='.$act['a_key']) ?>');">
        <?}
        ?></div><?
      }
      else
      {
        if ($ap < $apCost) print('<b style="color: gray">You need more AP to try that!</b>');
      }      
      ?></div>
      
      <div>
      Costs <?= $apCost?> Action Point<? if ($apCost!=1) print('s'); 
      if (sizeof($dropList)>0) 
      {
        print('. Rewards');
        if (sizeof($act['mobs'])>1)
          print(' '.sizeof($act['mobs']).'x');
        ?>
        <div class="action_drops">
          <?= implode('<br/>', $dropList); ?>
        </div>
        <?
      }
      ?></div><?  
    } 
    else 
    {
    ?>
    To do this...
      <div class="action_prereqs">
        <?= $prereqs ?>
      </div>
    <?
    }
    ?></div>
  </td>
</tr>
<tr><td colspan="10">&nbsp;</td></tr>